<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="battcn" uri="http://www.battcn.com/tags"%>
<%@ include file="/WEB-INF/views/common/common.jspf"%>
<style>
	.span-control {    
	padding: 6px 12px;
	display: block;
	}
</style>
<div class="ibox float-e-margins">
		<div class="ibox-content">
		<form class="form-horizontal m-t required-validate" id="menu${OP.menu}Form">
			<div class="form-group">
				<label class="col-sm-3 control-label">电影名称：</label>
				<div class="col-sm-8">
					<span class="span-control">${movieDetail.title }</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">演员：</label>
				<div class="col-sm-8">
				<span class="span-control">
				<c:forEach items="${actorList }" var="actor">
					<a href="javascript:showDataAnalysis(${actor.id },1);" >${actor.actorname }</a>&nbsp;
				</c:forEach>
        	     </span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">导演：</label>
				<div class="col-sm-8">
					<span class="span-control">
					<c:forEach items="${directorList }" var="director">
						<a href="javascript:showDataAnalysis(${director.id },2);"  >${director.directorname }</a>&nbsp;
					</c:forEach>
					</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">上映日期：</label>
				<div class="col-sm-8">
					<span class="span-control">
						<fmt:formatDate value="${movieDetail.releasedate }" pattern="yyyy-MM-dd" />
					</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">豆瓣评分：</label>
				<div class="col-sm-8">
					<span class="span-control">${movieDetail.grade }</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">演员导演综合评分：</label>
				<div class="col-sm-8">
					<span class="span-control" id="grade"> </span>
				</div>
				
				<!-- <div class="col-sm-4" style="text-align: left;">
					<button type="button"  onclick = "statistics();"
						class="btn btn-primary">开始统计</button>
				</div> -->
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">剧情介绍：</label>
				<div class="col-sm-8">
				<span class="span-control">
					<textarea id="ccomment" name="remark" cols="55" readonly="readonly" rows="10"
						class="form-control">${movieDetail.content }
					</textarea>
					
				</div>
			</div>
			
			
			</form>
	</div>
</div>
<script type="text/javascript">
function showDataAnalysis(id,type){
	layer.open({
		type : 2,
		title : '展示图表',
		shadeClose : false,
		moveOut : true,
		shade : 0.5,
		maxmin:true,
		area : ['100%','100%'],
		content : rootPath + '/dataAnalysis/showMovieData?id='+id+'&type='+type
	});
}
/* 评分统计  */
function statistics(){
	
}
</script>


